<template>
  <div>首页</div>
  <div>{{ $store.state.count }}</div>
</template>
<script setup lang="ts">
import { useStore } from '@/store'

const store = useStore()
const a = store.state.count
console.log(a)
</script>
<style scoped></style>
